<?php
/**************************************************************************************************
| Software Name        : OPENTUBE - Open Source (flex based) Video Sharing Application
| Software Version     : 0.1
| Website              : http://opentube.info
| Blog                 : http://blog.opentube.info
| E-mail               : opentube@googlegroups.com
|
|**************************************************************************************************
| This source file is subject to the LGPL License Agreement, available online at:
| http://www.gnu.org/copyleft/lesser.html
| By using this software, you acknowledge having read this Agreement and agree to be bound thereby.
|
|**************************************************************************************************/
header ('Content-Type:text/xml; charset=utf-8');
include("include/config.php");
include("include/function.php");
    $sql1 = "select VID, title, viewtime, description, provider, flvdoname, vkey from video where viewtime<>'0000-00-00 00:00:00' and type='public' order by viewtime desc limit 0, 12"; 
    $rs_v = $conn->execute($sql1);
    $recent = $rs_v->getrows();
    $randthumb=rand(1, 3);
    STemplate::assign('randthumb',$randthumb);
    STemplate::assign('recent', $recent);
    STemplate::assign('recent_total', count($recent));
    STemplate::display('recentlyviewed.tpl');
?>
